<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>登录超时</title>
#include("../_common/head.html")
<link href="#(ctxPath)/pear/admin/css/other/error.css" rel="stylesheet" />
</head>
<body>
	<div class="content">
		<img src="#(ctxPath)/admin/_assets/images/login_timeout.png" style="width: 30%; height: 30%;">
		<div class="content-r">
			<h1>登录超时</h1>
			<p>系统将在 <label id="second" style="color: red;">20</label> 秒后跳转到
			    <a href="javascript:goBack();">
			         <button class="pear-btn pear-btn-sm pear-btn-primary">登录</button>
			    </a> 页
			</p>
		</div>
	</div>
#include("../_common/foot.html")
	<script type="text/javascript">
		var sec = document.getElementById("second");
		var i = 20;
		var timer = setInterval(function() {
			i--;
			sec.innerHTML = i;
			if (i == 0) {
				goBack();
			}
		}, 1000);

		function goBack() {
			window.top.location.href = "#(ctxPath)/admin/login";
		}
	</script>
</body>
</html>
